﻿/// <reference path="../Framework/BrowserApi.js" />
/// <reference path="../Framework/Toolbar/Toolbar.css" />
/// <reference path="MouseAndKeyboardEvents.js" />
/// <reference path="SelectionProcessing.js" />
/// <reference path="Spreadsheet.js" />
/// <reference path="VirtualScrolling.js" />
/// <reference path="ToolbarItems.js" />


// Stores the content of a single spreadsheet.
var SpreadsheetContent =
{
    TotalRows: "200000",
    MaximumColumns: "200",
    SelectedRowId: "1",
    SelectedColumnId: "1",

    Rows:
    {
        2:
        {
            Cells:
            {
                2: { Text: "The customer object: stores the customer information, business logic, load and save", Formatting: "CommentTextStyle", ColumnSpan: 21 }
            }
        },
        3:
        {
            Cells:
            {
                2: { Text: "Code Template", Formatting: "KeywordTextStyle", ColumnSpan: 4 },
                6: { Text: "Customer Template", Formatting: "NormalTextStyle", ColumnSpan: 5 }
            }
        },
        4:
        {
            Cells:
            {
                2: { Text: "[", Formatting: "KeywordTextStyle", ColumnSpan: 1 }
            }
        },
        5:
        {
            Cells:
            {
                3: { Text: "Variables", Formatting: "IndicatorTextStyle", ColumnSpan: 3 }
            }
        },
        6:
        {
            Cells:
            {
                3: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                4: { Text: "Integer 8", Formatting: "KeywordTextStyle", ColumnSpan: 3 },
                7: { Text: "Id", Formatting: "NormalTextStyle", ColumnSpan: 2 }
            }
        },
        7:
        {
            Cells:
            {
                3: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                4: { Text: "Text", Formatting: "KeywordTextStyle", ColumnSpan: 2 },
                6: { Text: "Name", Formatting: "NormalTextStyle", ColumnSpan: 3 }
            }
        },
        8:
        {
            Cells:
            {
                3: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                4: { Text: "Text", Formatting: "KeywordTextStyle", ColumnSpan: 2 },
                6: { Text: "Address", Formatting: "NormalTextStyle", ColumnSpan: 4 }
            }
        },
        10:
        {
            Cells:
            {
                3: { Text: "Action", Formatting: "KeywordTextStyle", ColumnSpan: 2 },
                5: { Text: "Load Customer Record", Formatting: "NormalTextStyle", ColumnSpan: 6 }
            }
        },
        11:
        {
            Cells:
            {
                3: { Text: "[", Formatting: "KeywordTextStyle", ColumnSpan: 1 }
            }
        },
        12:
        {
            Cells:
            {
                4: { Text: "Parameters", Formatting: "IndicatorTextStyle", ColumnSpan: 3 }
            }
        },
        13:
        {
            Cells:
            {
                4: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                5: { Text: "Integer 8", Formatting: "KeywordTextStyle", ColumnSpan: 3 },
                8: { Text: "Customer Id", Formatting: "NormalTextStyle", ColumnSpan: 4 }
            }
        },
        14:
        {
            Cells:
            {
                4: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                5: { Text: "Text 50", Formatting: "KeywordTextStyle", ColumnSpan: 3 },
                8: { Text: "Customer Name", Formatting: "NormalTextStyle", ColumnSpan: 5 }
            }
        },
        15:
        {
            Cells:
            {
                4: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                5: { Text: "Text 100", Formatting: "KeywordTextStyle", ColumnSpan: 3 },
                8: { Text: "Customer Address", Formatting: "NormalTextStyle", ColumnSpan: 5 }
            }
        },
        16:
        {
            Cells:
            {
                4: { Text: "-", Formatting: "NormalTextStyle", ColumnSpan: 1 },
                5: { Text: "Decimal 8", Formatting: "KeywordTextStyle", ColumnSpan: 3 },
                8: { Text: "Customer Balance", Formatting: "NormalTextStyle", ColumnSpan: 5 }
            }
        },
        18:
        {
            Cells:
            {
                4: { Text: "Code", Formatting: "IndicatorTextStyle", ColumnSpan: 2 }
            }
        },
        19:
        {
            Cells:
            {
                5: { Text: ". . . .", Formatting: "NormalTextStyle", ColumnSpan: 2 }
            }
        },
        20:
        {
            Cells:
            {
                5: { Text: ". . . .", Formatting: "NormalTextStyle", ColumnSpan: 2 }
            }
        },
        21:
        {
            Cells:
            {
                3: { Text: "]", Formatting: "KeywordTextStyle", ColumnSpan: 1 }
            }
        },
        22:
        {
            Cells:
            {
                2: { Text: "]", Formatting: "KeywordTextStyle", ColumnSpan: 1 }
            }
        }
    }
};

Spreadsheet.InitializeAndLoadCompleted();